package service;

/**
 * @author yk
 * @version 1.0
 * @date 2021/2/26
 */
public class LagouServlet extends HttpServlet{
    @Override
    public void doGet(Request request, Response response) throws Exception {
//        Thread.sleep(100000);
        String content = "<h1>LagouServlet get</h1>";
        response.output(HttpProtocolUtil.getHttpHeader200(content.getBytes().length)+content);
    }

    @Override
    public void doPost(Request request, Response response) throws Exception {
        String content = "<h1>LagouServlet post</h1>";
        response.output(HttpProtocolUtil.getHttpHeader200(content.getBytes().length)+content);
    }

    @Override
    public void init() {

    }

    @Override
    public void destory() {

    }
}
